package com.wisdytech.linkdcs.equipLifeCycle.maintain.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wisdytech.linkdcs.partLife.model.Part;
import com.wisdytech.linkdcs.tool.model.TtEqTool;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-07-17
 */
@TableName("TT_EQ_REPAIR_PLAN")
public class RepairPlan extends Model<RepairPlan> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private String pkId;

    @TableField("EQUIP_CODE")
    private String equipCode;

    @TableField("MAINTENANCE_PROJECT")
    private String maintenanceProject;

    @TableField("MAINTENANCE_CATEGORY")
    private String maintenanceCategory;

    @TableField(value = "PLAN_DEPARTMENT")
    private String planDepartment;

    @TableField(value = "DUTY_DEPARTMENT")
    private String dutyDepartment;

    @TableField(value = "ASSIST_DEPARTMENT")
    private String assistDepartment;

    @TableField("SHUTDOWN_FLAG")
    private String shutdownFlag;

    @TableField("DUTY_USER")
    private String dutyUser;

    @TableField("ASSIST_USER")
    private String assistUser;

    @TableField("MAINTENANCE_START_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date maintenanceStartDate;

    @TableField("MAINTENANCE_END_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date maintenanceEndDate;

    @TableField("STAFF_INPUT")
    private String staffInput;

    @TableField("EFFECT_AREA")
    private String effectArea;

    @TableField("READY_FLAG")
    private String readyFlag;

    @TableField("DEL_FLAG")
    private String delFlag;

    @TableField("CREATE_USER")
    private String createUser;

    @TableField("CREATE_DATE")
    private Date createDate;

    @TableField("UPDATE_USER")
    private String updateUser;

    @TableField("UPDATE_DATE")
    private Date updateDate;

    @TableField("REMARK")
    private String remark;

    @TableField(exist = false)
    private String equipName;

    @TableField(exist = false)
    private String factoryName;

    @TableField(exist = false)
    private String lineName;

    @TableField(exist = false)
    private String shopName;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private String equipId;

    @TableField(exist = false)
    private String maintenanceCategoryValue;

    @TableField(exist = false)
    private String dutyUserName;

    @TableField(exist = false)
    private String assistUserName;

    @TableField(exist = false)
    private String toolIds;

    @TableField(exist = false)
    private String partIds;

    @TableField(exist = false)
    private List<Part> partList;

    @TableField(exist = false)
    private List<TtEqTool> toolList;

    public String getMaintenanceCategoryValue() {
        return maintenanceCategoryValue;
    }

    public void setMaintenanceCategoryValue(String maintenanceCategoryValue) {
        this.maintenanceCategoryValue = maintenanceCategoryValue;
    }

    public String getEquipId() {
        return equipId;
    }

    public void setEquipId(String equipId) {
        this.equipId = equipId;
    }

    public List<Part> getPartList() {
        return partList;
    }

    public void setPartList(List<Part> partList) {
        this.partList = partList;
    }

    public List<TtEqTool> getToolList() {
        return toolList;
    }

    public void setToolList(List<TtEqTool> toolList) {
        this.toolList = toolList;
    }

    public String getToolIds() {
        return toolIds;
    }

    public void setToolIds(String toolIds) {
        this.toolIds = toolIds;
    }

    public String getPartIds() {
        return partIds;
    }

    public void setPartIds(String partIds) {
        this.partIds = partIds;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getDutyUserName() {
        return dutyUserName;
    }

    public void setDutyUserName(String dutyUserName) {
        this.dutyUserName = dutyUserName;
    }

    public String getAssistUserName() {
        return assistUserName;
    }

    public void setAssistUserName(String assistUserName) {
        this.assistUserName = assistUserName;
    }

    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    public String getMaintenanceProject() {
        return maintenanceProject;
    }

    public void setMaintenanceProject(String maintenanceProject) {
        this.maintenanceProject = maintenanceProject;
    }

    public String getMaintenanceCategory() {
        return maintenanceCategory;
    }

    public void setMaintenanceCategory(String maintenanceCategory) {
        this.maintenanceCategory = maintenanceCategory;
    }

    public String getPlanDepartment() {
        return planDepartment;
    }

    public void setPlanDepartment(String planDepartment) {
        this.planDepartment = planDepartment;
    }

    public String getDutyDepartment() {
        return dutyDepartment;
    }

    public void setDutyDepartment(String dutyDepartment) {
        this.dutyDepartment = dutyDepartment;
    }

    public String getAssistDepartment() {
        return assistDepartment;
    }

    public void setAssistDepartment(String assistDepartment) {
        this.assistDepartment = assistDepartment;
    }

    public String getShutdownFlag() {
        return shutdownFlag;
    }

    public void setShutdownFlag(String shutdownFlag) {
        this.shutdownFlag = shutdownFlag;
    }

    public String getDutyUser() {
        return dutyUser;
    }

    public void setDutyUser(String dutyUser) {
        this.dutyUser = dutyUser;
    }

    public String getAssistUser() {
        return assistUser;
    }

    public void setAssistUser(String assistUser) {
        this.assistUser = assistUser;
    }

    public Date getMaintenanceStartDate() {
        return maintenanceStartDate;
    }

    public void setMaintenanceStartDate(Date maintenanceStartDate) {
        this.maintenanceStartDate = maintenanceStartDate;
    }

    public Date getMaintenanceEndDate() {
        return maintenanceEndDate;
    }

    public void setMaintenanceEndDate(Date maintenanceEndDate) {
        this.maintenanceEndDate = maintenanceEndDate;
    }

    public String getStaffInput() {
        return staffInput;
    }

    public void setStaffInput(String staffInput) {
        this.staffInput = staffInput;
    }

    public String getEffectArea() {
        return effectArea;
    }

    public void setEffectArea(String effectArea) {
        this.effectArea = effectArea;
    }

    public String getReadyFlag() {
        return readyFlag;
    }

    public void setReadyFlag(String readyFlag) {
        this.readyFlag = readyFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "RepairPlan{" +
        ", pkId=" + pkId +
        ", equipCode=" + equipCode +
        ", maintenanceProject=" + maintenanceProject +
        ", maintenanceCategory=" + maintenanceCategory +
        ", planDepartment=" + planDepartment +
        ", dutyDepartment=" + dutyDepartment +
        ", assistDepartment=" + assistDepartment +
        ", shutdownFlag=" + shutdownFlag +
        ", dutyUser=" + dutyUser +
        ", assistUser=" + assistUser +
        ", maintenanceStartDate=" + maintenanceStartDate +
        ", maintenanceEndDate=" + maintenanceEndDate +
        ", staffInput=" + staffInput +
        ", effectArea=" + effectArea +
        ", readyFlag=" + readyFlag +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
